require 'rubygems'

puts __FILE__

class B2
  def self.dev_home
    ["DEV_HOME","DEV_ROOT","USERPROFILE","HOME"].each {|v|
	  return ENV[v].gsub('\\','/') unless ENV[v].nil?
	}
	nil
  end

  def self.cmd_available?(cmd)
    testCmd="which #{cmd}"
	testCmd="where #{cmd}" if RUBY_PLATFORM.include?("mingw")
	status,stdout,stderr=systemu(testCmd)
	puts "status " + status.to_s
	puts "stdout:"
	puts stdout
	puts "stderr:"
	puts stderr
	return false if stdout.include?("Could not find")
	return true;
  end

  def self.install
  end

  def self.uninstall
  end
end